<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "contract_attachment".
 *
 * @property int $id
 * @property int $cid
 * @property string $name
 * @property string $file_src
 * @property int $is_del
 * @property int $aid
 * @property int $updated_at
 * @property int $created_at
 */
class ContractAttachment extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'contract_attachment';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['cid', 'name', 'file_src'], 'required'],
            [['cid', 'is_del', 'aid', 'updated_at', 'created_at'], 'integer'],
            [['name'], 'string', 'max' => 64],
            [['file_src'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'cid' => 'Cid',
            'name' => 'Name',
            'file_src' => 'File Src',
            'is_del' => 'Is Del',
            'aid' => 'Aid',
            'updated_at' => 'Updated At',
            'created_at' => 'Created At',
        ];
    }
}
